import service1, {service2} from '@/util/request'

export default{


    finduser(){
        return service2({
            url: '/user/list',
            method: 'get',
        })
    },

    findByPage(page,pageSize){
        return service2({
            url: `/user/findByPage/${page}/${pageSize}`,
            method: 'get',
        })
    },

    search(page,pageSize,data){
        return service2({
            url:`/user/search/${page}/${pageSize}`,
            method:'post',
            data
        })

    },

    deleteuser(ids){
        return service1({
            url:`/user/delete/${ids}`,
            method:'delete'
        })

    }

}